<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // true 转换为数字类型 1
        var i = null % true
        var j = null % 8
            // [3] 转换为数字类型 3
        var k = null % [3]
            // '3' 转换为数字类型 3
        var l = null % '3'

        var m = null % false
        var n = null % 'str'

        console.log(i, j, k, l, m, n);
    </script>
</body>

</html>